package com.jtny.nytb.equipment.dto.equipment;

import com.jtny.component.annotation.QueryParamField;
import com.jtny.component.entity.PageParam;
import com.jtny.component.enums.FieldMatchingTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * @author 智慧能源中心 - zx
 * @package com.jtny.nytb.energymonitor.equipment.vo
 * @fileName EquipmentModelPageQueryParam.java
 * @createTime 2023年09月15日 14:26
 * @Copyright© 2023 jtny
 * 江投能源技术研究院 版权所有
 */

@ApiModel("设备模型信息查询DTO对象")
@Data
@EqualsAndHashCode(callSuper = true)
public class EquipmentModelPageQueryParamDTO extends PageParam implements Serializable {

    @ApiModelProperty("设备状态")
    @QueryParamField(columnName = "status", matchingType = FieldMatchingTypeEnum.EQ)
    private Integer status;

    @ApiModelProperty("设备模型id查询条件，精确查询")
    @QueryParamField(columnName = "id", matchingType = FieldMatchingTypeEnum.EQ)
    private Long id;

    @ApiModelProperty("设备模型id查询条件，精确查询")
    @QueryParamField(columnName = "id", matchingType = FieldMatchingTypeEnum.IN)
    private List<Long> idList;

    @ApiModelProperty("设备模型编码查询条件，精确查询")
    @QueryParamField(columnName = "code", matchingType = FieldMatchingTypeEnum.EQ)
    private String code;

    @ApiModelProperty("设备模型名称查询条件，模糊查询")
    @QueryParamField(columnName = "name", matchingType = FieldMatchingTypeEnum.LIKE)
    private String name;

    @ApiModelProperty("设备分类编码查询条件，精确查询")
    @QueryParamField(columnName = "type", matchingType = FieldMatchingTypeEnum.EQ)
    private String type;

    @ApiModelProperty("设备型号编码查询条件，精确查询")
    @QueryParamField(columnName = "model", matchingType = FieldMatchingTypeEnum.EQ)
    private String model;

    @ApiModelProperty("设备品牌编码查询条件，精确查询")
    @QueryParamField(columnName = "brand", matchingType = FieldMatchingTypeEnum.EQ)
    private String brand;

    /**
     * 1代表true测点模型设备，0代表false模型设备
     */
    @ApiModelProperty("1代表true测点模型设备，0代表false模型设备查询条件，精确查询")
    @QueryParamField(columnName = "is_measuring_point_device_model", matchingType = FieldMatchingTypeEnum.EQ)
    private Boolean isMeasuringPointDeviceModel;

    @ApiModelProperty("所在区域id, 精确查询")
    private Long areaId;

    @ApiModelProperty("所在区域id, 精确查询")
    @QueryParamField(columnName = "area_id", matchingType = FieldMatchingTypeEnum.IN)
    private List<Long> areaIdList;

    @ApiModelProperty("设备对接标识，精确查询")
    private String dockIdentifier;

    @ApiModelProperty("参量id列表")
    private List<Long> dataParamIdList;

    @ApiModelProperty("设备id列表")
    private List<Long> equipmentIdList;

}
